package com.hey.product.controller;

import com.hey.product.config.ProductConfig;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName ProductController
 * @Author hey
 * @Date 2018/11/12 15:45
 **/
@RestController
@RequestMapping("product")
public class ProductController {

    @GetMapping("/config/get")
    public String getProductConfig(){
        ProductConfig productConfig = new ProductConfig();
        return "商品名："+productConfig.getProductName()+"\r\n"+"商品数量："+productConfig.getProductNumber();
    }
}
